package com.lagou.task10;

public class PeopleTest {

    public static void main(String[] args) {

        //使用无参方式构造People类型的对象，然后打印
        Manager manager1 = new Manager();
        manager1.setName("艺龙");
        manager1.setBonus(3000);
        manager1.setId(2021211);
        manager1.setSalary(13000);
        manager1.show();
        manager1.work();
        System.out.println("-----------------------------------------------");
        //使用有参方式构造People类型的对象，然后打印
        Manager manager2 = new Manager("奥创",2039211,18000,6000);
        manager2.show();
        manager2.work();
        System.out.println("-----------------------------------------------");
        //使用有参方式构造People类型的对象，然后打印
        Coder coder1 = new Coder("程序猿",2021888,10000);
        coder1.show();
        coder1.work();
        System.out.println("-----------------------------------------------");
        //使用无参方式构造People类型的对象，然后打印
        Coder coder2 = new Coder();
        coder2.setId(2021211652);
        coder2.setName("陈序员");
        coder2.setSalary(12000);
        coder2.show();
        coder2.work();
    }

}
